package com.mall.user.dto;

import com.mall.commons.result.AbstractRequest;
import com.mall.commons.tool.exception.ValidateException;
import com.mall.user.constants.SysRetCodeConstants;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * @Description:
 * @Author: JK
 * @Date: create in 2021/7/21 9:11
 */
@Data
public class UserLoginStatusRequest extends AbstractRequest {
    private String token;

    @Override
    public void requestCheck() {
        if (StringUtils.isBlank(token)) {
            throw new ValidateException(SysRetCodeConstants.REQUEST_CHECK_FAILURE.getCode(), SysRetCodeConstants.REQUEST_CHECK_FAILURE.getMessage());
        }
    }
}
